-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Avoid using cliclack.confirm in non-interactive session #6412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid using cliclack.confirm in non-interactive session #6412
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes issue #6236 by preventing cliclack.confirm prompts from being called in non-interactive sessions, which would cause hangs or failures in automated environments like goose term or CI/CD.
Key changes:
- Added
interactiveparameter tocheck_missing_extensions_or_exitfunction - Added conditional logic to skip interactive prompts when
session_config.interactiveis false - Non-interactive sessions now emit warnings to stderr and continue execution instead of prompting
DOsinga
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could consider at some point to have a utility that would take the question and the warning and the default value and then in non-interactive mode print the warning and assume the default, but let's go with this!
| process::exit(0); | ||
| } | ||
| } else { | ||
| // Non-interactive mode: warn and continue without missing extensions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you remove the comment?
…ased * 'main' of github.com:block/goose: chore: break up process agent response (#6348) More 3.7 removal (#6414) CLI show extension errors (#6398) fix[desktop]: Improve UX for ExtensionItem component (#6443) update[doc]: Add tip for GitHub Copilot Provider (#6441) Avoid using cliclack.confirm in non-interactive session (#6412) docs: claude prompt caching note (#6429) Restore task completion notification (#6427) docs: stream-json and auth-token cli options (#6426)
Summary
Fixes Issue #6236
Type of Change
AI Assistance
Testing
Manual testing